Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Новая станционная раса. Тау-Китайцы #13348

Merged
merged 147 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from 126 commits
Commits
Show all changes
147 commits
Select commit Hold shift + click to select a range
ae7dbc4
Завел расу
FatFatFat1 Jun 30, 2024
4d1c722
Мы попадем в рай, а они просто сдохнут
FatFatFat1 Jul 1, 2024
b60cd49
Сошиал Кредит
FatFatFat1 Jul 1, 2024
381e278
Рекомендательные письма для рая
FatFatFat1 Jul 3, 2024
e2c092e
Здесь запривачено
FatFatFat1 Jul 3, 2024
74b02b8
Религия
FatFatFat1 Jul 3, 2024
fca6036
Харам - на атаку других плувийцевв
FatFatFat1 Jul 3, 2024
d3b9b2f
Харам на любой Харм
FatFatFat1 Jul 4, 2024
2b56c77
Переделал письма
FatFatFat1 Jul 4, 2024
4d330cd
Промытые не могут голосовать
FatFatFat1 Jul 4, 2024
a6e5023
Харам на суицид
FatFatFat1 Jul 4, 2024
e95f091
Харам на алкоголь и наркотики
FatFatFat1 Jul 4, 2024
f1cf0fc
Харам на прием пищи без палочек
FatFatFat1 Jul 4, 2024
62219dd
test_map
FatFatFat1 Jul 4, 2024
de8306d
харам на ковер
FatFatFat1 Jul 5, 2024
9ecb29b
Revert "test_map"
FatFatFat1 Jul 5, 2024
488267c
тест мап
FatFatFat1 Jul 5, 2024
197f6a8
Gunshot fix
FatFatFat1 Jul 5, 2024
05fdb99
Запасной вариант
FatFatFat1 Jul 5, 2024
17fc9b8
литл переделка логики промытости
FatFatFat1 Jul 5, 2024
baecfbc
Дух для связи
FatFatFat1 Jul 5, 2024
8121ead
Связь с раем
FatFatFat1 Jul 6, 2024
a936b2f
Вроде как добавил реанимацию из рая
FatFatFat1 Jul 6, 2024
15a1bcb
Update human.dm
FatFatFat1 Jul 6, 2024
7c59497
Переделал харм_харам более коректно
FatFatFat1 Jul 6, 2024
abe3c5e
поменял глазам плейн
FatFatFat1 Jul 6, 2024
acf0790
поменял глазам плейн
FatFatFat1 Jul 6, 2024
3786da7
дефиб на тестовую карту
FatFatFat1 Jul 6, 2024
ab8ab56
Ограничение на job
FatFatFat1 Jul 6, 2024
1802cbc
Починил реанмиацию
FatFatFat1 Jul 7, 2024
ef91932
Update pluvia_heaven.dm
FatFatFat1 Jul 7, 2024
a9c1f4e
забыть убрать дебаги
FatFatFat1 Jul 7, 2024
b8c0d72
Беды с кодировкой
FatFatFat1 Jul 7, 2024
69f847a
дионы теперь блатные
FatFatFat1 Jul 7, 2024
85026f2
литл фикс
FatFatFat1 Jul 7, 2024
b67e91f
Delete blessed.ogg
FatFatFat1 Jul 7, 2024
a5d49c2
Update pluvia_heaven.dm
FatFatFat1 Jul 7, 2024
3f56640
Комментарии к этой дичи
FatFatFat1 Jul 7, 2024
36079e5
Уйгурам-культистам тут не рады
FatFatFat1 Jul 7, 2024
63430ab
Update soulstone.dm
FatFatFat1 Jul 7, 2024
dad4e3e
I SEE DEAD PEOPLE
FatFatFat1 Jul 7, 2024
35fea3c
Только по квентам мухахаха
FatFatFat1 Jul 8, 2024
0632ac7
забыл
FatFatFat1 Jul 20, 2024
fb0cb28
исправил, чтобы проверка не ругалась
FatFatFat1 Jul 20, 2024
aeb432d
Revert "исправил, чтобы проверка не ругалась"
FatFatFat1 Jul 20, 2024
3ea03ba
Теперь должно работать
FatFatFat1 Jul 20, 2024
351ce22
забыл черточку
FatFatFat1 Jul 20, 2024
7075a8c
я незнаю откуда это просто дублировалось почемуто
FatFatFat1 Jul 20, 2024
ecdfab4
забыл закрыть </font>
FatFatFat1 Jul 20, 2024
747b022
а вот тут наоборот лишняя/
FatFatFat1 Jul 20, 2024
5bb1070
почему это важно?
FatFatFat1 Jul 20, 2024
8028fec
Светлячки
FatFatFat1 Jul 22, 2024
99a7973
Четвертый харм теперь тоже харам
FatFatFat1 Jul 22, 2024
0647fe3
вешать людей это очень очень плохо
FatFatFat1 Jul 22, 2024
e8e7cec
Приколы с ролями
FatFatFat1 Jul 22, 2024
adbcc58
Харам удары головы
FatFatFat1 Jul 22, 2024
db506af
Update code/__DEFINES/is_helpers.dm
FatFatFat1 Jul 23, 2024
00af485
ревью алерта.дм
FatFatFat1 Jul 23, 2024
e5ebcd2
Переименовал сигналы
FatFatFat1 Jul 23, 2024
849c384
Починил импланты
FatFatFat1 Jul 23, 2024
f926748
проверка на клиента в нужном месте
FatFatFat1 Jul 23, 2024
b55e02f
Вспомнил про дефайн
FatFatFat1 Jul 23, 2024
1ca0d42
Поменял на ранний ретурн
FatFatFat1 Jul 23, 2024
e24e6e3
Модная водичка
FatFatFat1 Jul 23, 2024
5abc173
Починил и улучшил паралакс
FatFatFat1 Jul 26, 2024
99954d9
Update pluvia_heaven.dm
FatFatFat1 Jul 26, 2024
97a560d
Забыл кое-что убрать
FatFatFat1 Jul 26, 2024
6a00c7b
меньше кода - больше дела
FatFatFat1 Jul 27, 2024
8821e99
current_parallax теперь переменная моба
FatFatFat1 Jul 27, 2024
ca72ad6
бесполезная проверка
FatFatFat1 Jul 27, 2024
0f6a2e6
слишком жирный баф убран
FatFatFat1 Jul 27, 2024
a3ff310
пристрелка спрайтов
FatFatFat1 Jul 29, 2024
8bda7a6
пристрелка рая
FatFatFat1 Jul 29, 2024
6a74ad4
Забыл запретить виспам пулить вещи
FatFatFat1 Jul 29, 2024
8c6ad5f
залил спрайт гонга
FatFatFat1 Aug 1, 2024
deef5ad
фикс прослушки
FatFatFat1 Aug 4, 2024
4c872f2
mmm_monkey
FatFatFat1 Aug 5, 2024
acfeca8
висп теперь осязаем
FatFatFat1 Aug 5, 2024
5c9c982
чашка луна-РИС!
FatFatFat1 Aug 5, 2024
ab4b648
пердеп рекуест
FatFatFat1 Aug 6, 2024
ab209d9
Переплата за бренд
FatFatFat1 Aug 6, 2024
1b8415f
пердем-рукеуст
FatFatFat1 Aug 7, 2024
765361b
ура спрайты
FatFatFat1 Aug 7, 2024
af7bc1c
Оказывается виспы все это время дохли в космосе
FatFatFat1 Aug 7, 2024
336e8f0
При реанимации вещи выкидываются в раю
FatFatFat1 Aug 7, 2024
23db4a6
Фикс первородного бага
FatFatFat1 Aug 7, 2024
dbfdf43
Добавил удобную будку для роскомнадзора
FatFatFat1 Aug 7, 2024
0bcb630
вилкой теперь тоже можно
FatFatFat1 Aug 8, 2024
a82a0a2
пожалуй это стоит записывать в логи
FatFatFat1 Aug 8, 2024
433566f
и это тоже
FatFatFat1 Aug 8, 2024
91edf6e
Перевел социальные кредиты из моба в майнд
FatFatFat1 Aug 8, 2024
6c77659
Превентивный удар по абузам
FatFatFat1 Aug 9, 2024
3295b69
ура спрайты!
FatFatFat1 Aug 9, 2024
3b0558e
Удобство для модерирования
FatFatFat1 Aug 11, 2024
5c7490c
высчитывание social_credit_threshold
FatFatFat1 Aug 11, 2024
5d8a00f
Более правильные логи
FatFatFat1 Aug 11, 2024
392c348
ПЕРЕВОД ЛОГОВ
FatFatFat1 Aug 11, 2024
51a202f
спрайты+новая одежда+ раса+ крафты
FatFatFat1 Sep 16, 2024
0c65bec
Merge branch 'master' of https://github.com/TauCetiStation/TauCetiCla…
FatFatFat1 Sep 16, 2024
85f0019
Merge branch 'master' of https://github.com/TauCetiStation/TauCetiCla…
FatFatFat1 Sep 16, 2024
e3e821f
решаем проблемы с проверками
FatFatFat1 Sep 16, 2024
48f425b
Update parallax.dm
FatFatFat1 Sep 16, 2024
0e77312
ой
FatFatFat1 Sep 16, 2024
9060fba
убрал неактуальное
FatFatFat1 Sep 16, 2024
99e0a98
ЗАПЯТАЯ
FatFatFat1 Sep 16, 2024
a20f172
поменял путь
FatFatFat1 Sep 16, 2024
a52067c
забыл смягчить подбородок
FatFatFat1 Sep 16, 2024
6d17555
ПАДЕЖИ
FatFatFat1 Sep 16, 2024
e4e2717
рефактор жоба
FatFatFat1 Sep 17, 2024
339a38d
Update miscellaneous.dm
FatFatFat1 Sep 17, 2024
f062671
carpet remove
FatFatFat1 Sep 17, 2024
5ce2336
переименовал IGNORE_DISTANTS
FatFatFat1 Sep 17, 2024
5b39748
убрал ненужную для админов инфу
FatFatFat1 Sep 17, 2024
53d6801
передалал сигналы атак
FatFatFat1 Sep 17, 2024
2d63f33
перенес присчитывание порога кармы
FatFatFat1 Sep 17, 2024
35556cc
фича_апдейтет
FatFatFat1 Sep 17, 2024
eafcf9f
проверка для топика
FatFatFat1 Sep 29, 2024
6a96bc1
санитайз харама
FatFatFat1 Sep 29, 2024
912f340
num
FatFatFat1 Sep 29, 2024
ea3bd00
упс
FatFatFat1 Oct 5, 2024
ab8d8ec
фикс реанимации
FatFatFat1 Oct 6, 2024
8e6eb74
перенес файл
FatFatFat1 Oct 6, 2024
2646d9f
Update pluvia_heaven.dm
FatFatFat1 Oct 6, 2024
86305a3
убрал лишние штукенции
FatFatFat1 Oct 6, 2024
6ab6768
поменял поиск ареи на лндмарки
FatFatFat1 Oct 6, 2024
60b6638
забыл
FatFatFat1 Oct 8, 2024
ee6ca95
Fix encoding
volas Oct 11, 2024
fc8aaae
Merge branch 'master' of github.com:TauCetiStation/TauCetiClassic int…
volas Oct 11, 2024
5749b7d
Create centcom.dmm
FatFatFat1 Oct 12, 2024
770c47a
Merge branch 'master' of https://github.com/TauCetiStation/TauCetiCla…
FatFatFat1 Oct 12, 2024
86c4eb7
Подготовка к тест мержу
FatFatFat1 Oct 12, 2024
80329b9
misc, fixes
volas Oct 12, 2024
7245f2f
temp access to all during tm
volas Oct 12, 2024
389ddb2
Merge commit 'refs/pull/13348/head' of github.com:TauCetiStation/TauC…
volas Oct 12, 2024
1ac8b33
typo
volas Oct 12, 2024
1b7b527
fix tele
volas Oct 12, 2024
7b9c8a3
whitelist fix
volas Oct 12, 2024
25d8149
Fuck this
volas Oct 12, 2024
b5961db
Fix lobby runtime
volas Oct 12, 2024
3d5df28
PP religion counters
volas Oct 12, 2024
c6ce5cf
log fix
volas Oct 12, 2024
7079d19
ventcrawl wisp
FatFatFat1 Oct 13, 2024
bab06ed
арея для рая
FatFatFat1 Oct 13, 2024
b54631d
фикс ролей
FatFatFat1 Oct 13, 2024
33fcd5e
утерянная прическа
FatFatFat1 Oct 13, 2024
e75da24
Update pluvia_heaven.dm
FatFatFat1 Oct 13, 2024
b32e521
выбор язык
FatFatFat1 Oct 13, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions code/__DEFINES/dcs/signals.dm
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,18 @@
#define COMSIG_LIVING_CAN_TRACK "mob_cantrack"
#define COMPONENT_CANT_TRACK (1<<0)
#define COMSIG_LIVING_BUMPED "living_bumped"
// from base of mob/living/proc/log_combat (mob/living/carbon/human/attacker)
#define COMSIG_HUMAN_HARMED_OTHER "human_harmed_other"
// from base of /obj/structure/stool/bed/chair/noose/user_buckle_mob()
#define COMSIG_HUMAN_ON_SUICIDE "human_on_suicide"
// from base of /mob/living/carbon/proc/handle_alerts()
#define COMSIG_HUMAN_ON_ADJUST_DRUGINESS "human_on_adjust_drugines"
// from base of /obj/item/weapon/reagent_containers/food/snacks/proc/On_Consume()
#define COMSIG_HUMAN_ON_CONSUME "human_on_consume"
// from base of /turf/simulated/floor/carpet/Entered(atom/movable/O)
#define COMSIG_HUMAN_ON_CARPET "human_on_carpet"
// from base of /mob/living/carbon/human/say()
#define COMSIG_HUMAN_SAY "human_say"

/// from /obj/effect/proc_holder/changeling/transform/sting_action(): (mob/living/carbon/human/user)
#define COMSIG_CHANGELING_TRANSFORM "changeling_transform"
Expand Down
2 changes: 2 additions & 0 deletions code/__DEFINES/is_helpers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@

#define isskeleton(A) (A.get_species() in list(SKELETON, SKELETON_UNATHI, SKELETON_TAJARAN, SKELETON_SKRELL, SKELETON_VOX))

#define ispluvian(A) (A.get_species() == PLUVIAN)

// CARBON
#define isxenoqueen(A) (istype(A, /mob/living/carbon/xenomorph/humanoid/queen))

Expand Down
1 change: 1 addition & 0 deletions code/__DEFINES/misc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,7 @@
/turf/simulated/wall/r_wall/purple, \
/turf/simulated/wall/r_wall/green, \
/turf/simulated/wall/r_wall/beige, \
/turf/simulated/wall/heaven, \
/obj/structure/falsewall, \
/obj/structure/falsewall/yellow, \
/obj/structure/falsewall/red, \
Expand Down
2 changes: 2 additions & 0 deletions code/__DEFINES/mob.dm
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@

// Species Names (keep in mind, that whitelist and preferences DB depends on this names too, and if anything is renamed, update MYSQL tables or is_alien_whitelisted() proc and preferences).
#define HUMAN "Human"
#define PLUVIAN "Pluvian"
#define PLUVIAN_SPIRIT "Pluvian Spirit"
#define UNATHI "Unathi"
#define TAJARAN "Tajaran"
#define SKRELL "Skrell"
Expand Down
2 changes: 1 addition & 1 deletion code/_globalvars/database.dm
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ var/global/DBConnection/dbcon = new()
// Xeno/role whitelist database ( code/modules/admin/whitelist.dm )
//
var/global/list/role_whitelist // cache of all ckeys and their roles
var/global/list/whitelisted_roles = list("unathi", "tajaran", "skrell", "diona", "machine", "vox", "ian") // Case important, everything must be in lowercase.
var/global/list/whitelisted_roles = list("unathi", "tajaran", "skrell", "diona", "machine", "vox", "ian", "pluvian") // Case important, everything must be in lowercase.
1 change: 1 addition & 0 deletions code/_globalvars/misc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ var/global/list/ignore_vision_inside = list(
var/global/datum/religion/chaplain/chaplain_religion
// Cultists religion. You/I can change it?
var/global/datum/religion/cult/cult_religion
var/global/datum/religion/pluvia_religion
var/global/list/datum/religion/all_religions = list()

//Used for global activation of pylons
Expand Down
4 changes: 4 additions & 0 deletions code/_onclick/hud/_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -169,3 +169,7 @@
#define HUD_COPY_ICON 1
#define HUD_COPY_COLOR 2
#define HUD_COPY_ALPHA 4

//Parallax
#define PARALLAX_CLASSIC "parallax_classic"
#define PARALLAX_HEAVEN "parallax_heaven"
14 changes: 14 additions & 0 deletions code/_onclick/hud/alert.dm
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,20 @@
или стрелять из пистолета, чтобы передвигаться в соответствии с 3-м законом Ньютона."
icon_state = "weightless"

/atom/movable/screen/alert/pluvia_ring
name = "Входящий вызов"
desc = "Кто-то с того света желает говорить с вами."
icon_state = "ring"

/atom/movable/screen/alert/pluvia_ring/Click()
if(!mob_viewer)
return
to_chat(mob_viewer, "Вы сбросили звонок!")
for(var/obj/effect/proc_holder/spell/no_target/ancestor_call/S in mob_viewer.spell_list)
S.target_loc = null
S.my_gong = null
mob_viewer.clear_alert("Звонок")

//ALIENS

/atom/movable/screen/alert/alien_tox
Expand Down
2 changes: 1 addition & 1 deletion code/_onclick/hud/hud.dm
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ var/global/list/available_ui_styles = list(

mymob.update_action_buttons()
reorganize_alerts()
create_parallax() // todo: why we recreate parallax every time we change mob or press f12
set_parallax(mymob.current_parallax) // todo: why we recreate parallax every time we change mob or press f12
hidden_inventory_update()
persistant_inventory_update()

Expand Down
32 changes: 22 additions & 10 deletions code/_onclick/hud/parallax.dm
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,25 @@
var/parallax_layers_max = 3
var/parallax_animate_timer

/datum/hud/proc/create_parallax()
/mob
var/current_parallax = PARALLAX_CLASSIC
volas marked this conversation as resolved.
Show resolved Hide resolved

/datum/hud/proc/create_parallax(parallax_type)
var/client/C = mymob.client
if (!apply_parallax_pref())
return

if(!length(C.parallax_layers_cached))
var/icon/parralax_icon
switch(parallax_type)
if(PARALLAX_CLASSIC)
parralax_icon = 'icons/effects/parallax.dmi'
if(PARALLAX_HEAVEN)
parralax_icon = 'icons/effects/pluvia_water.dmi'
if(!length(C.parallax_layers_cached) || parallax_type != mymob.current_parallax)
C.parallax_layers_cached = list()
C.parallax_layers_cached += new /atom/movable/screen/parallax_layer/layer_1(null, C.view, 'icons/effects/parallax.dmi')
C.parallax_layers_cached += new /atom/movable/screen/parallax_layer/layer_2(null, C.view, 'icons/effects/parallax.dmi')
C.parallax_layers_cached += new /atom/movable/screen/parallax_layer/layer_3(null, C.view, 'icons/effects/parallax.dmi')
//C.parallax_layers_cached += new /atom/movable/screen/parallax_layer/planet(null, C.view, 'icons/effects/parallax.dmi') awaiting for new planet image in replace for lavaland

C.parallax_layers_cached += new /atom/movable/screen/parallax_layer/layer_1(null, C.view, parralax_icon)
C.parallax_layers_cached += new /atom/movable/screen/parallax_layer/layer_2(null, C.view, parralax_icon)
C.parallax_layers_cached += new /atom/movable/screen/parallax_layer/layer_3(null, C.view, parralax_icon)
C.parallax_layers = C.parallax_layers_cached.Copy()

if (length(C.parallax_layers) > C.parallax_layers_max)
Expand All @@ -36,7 +43,7 @@
var/client/C = mymob.client
C.screen -= (C.parallax_layers_cached)
C.parallax_layers = null

mymob.current_parallax = null
C.update_plane_masters(/atom/movable/screen/plane_master/parallax_white)

/datum/hud/proc/apply_parallax_pref()
Expand Down Expand Up @@ -68,9 +75,14 @@
C.parallax_layers_max = 3
return TRUE

/datum/hud/proc/update_parallax_pref()
/datum/hud/proc/set_parallax(new_parallax)
remove_parallax()
create_parallax()
create_parallax(new_parallax)
mymob.current_parallax = new_parallax

/datum/hud/proc/update_parallax_pref()
set_parallax(mymob.current_parallax)


// This sets which way the current shuttle is moving (returns true if the shuttle has stopped moving so the caller can append their animation)
/datum/hud/proc/set_parallax_movedir(new_parallax_movedir)
Expand Down
5 changes: 5 additions & 0 deletions code/_onclick/item_attack.dm
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
user.SetNextMove(CLICK_CD_ACTION)
user.visible_message("<span class='danger'>[user] slit [M]'s throat open with \the [name]!</span>")
M.log_combat(user, "knifed with [name] (INTENT: [uppertext(user.a_intent)]) (DAMTYPE: [uppertext(damtype)])")
SEND_SIGNAL(user, COMSIG_HUMAN_HARMED_OTHER, M)
return

if (isbrain(M))
Expand All @@ -105,6 +106,8 @@
M.equip_to_slot_if_possible(src, SLOT_HEAD, disable_warning = TRUE)
user.visible_message("<span class='danger'>[user] slams [name] on the [M]'s head!</span>")
M.log_combat(user, "slammed with [name] on the head (INTENT: [uppertext(user.a_intent)]) (DAMTYPE: [uppertext(BRUTE)])")
if(force > 0)
SEND_SIGNAL(user, COMSIG_HUMAN_HARMED_OTHER, M)
var/list/data = user.get_unarmed_attack()
// if item has no force just assume attacker smashed his fist (no scratches or any modifiers) against victim's head.
if(user.a_intent in list(INTENT_PUSH, INTENT_GRAB))
Expand All @@ -113,6 +116,8 @@
return TRUE

M.log_combat(user, "attacked with [name] (INTENT: [uppertext(user.a_intent)]) (DAMTYPE: [uppertext(damtype)])")
if(force > 0)
SEND_SIGNAL(user, COMSIG_HUMAN_HARMED_OTHER, M)

var/power = force
if(ishuman(user) && damtype == BRUTE)
Expand Down
2 changes: 1 addition & 1 deletion code/controllers/subsystem/ticker.dm
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,6 @@ SUBSYSTEM_DEF(ticker)

/datum/controller/subsystem/ticker/proc/setup()
to_chat(world, "<span class='boldannounce'>Игра начинается...</span>")

// Discuss your stuff after the round ends.
if(config.ooc_round_autotoggle)
to_chat(world, "<span class='warning bold'>OOC-канал отключен для всех на время раунда!</span>")
Expand Down Expand Up @@ -270,6 +269,7 @@ SUBSYSTEM_DEF(ticker)
query_round_game_mode.Execute()

create_religion(/datum/religion/chaplain)
create_religion(/datum/religion/pluvia)
setup_hud_objects()

create_characters() //Create player characters and transfer them
Expand Down
4 changes: 2 additions & 2 deletions code/datums/components/clickplace.dm
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
victim.apply_damage(8, def_zone = BP_HEAD)
victim.visible_message("<span class='danger'>[assailant] slams [victim]'s face against \the [A]!</span>")
playsound(parent, 'sound/weapons/tablehit1.ogg', VOL_EFFECTS_MASTER)

SEND_SIGNAL(assailant, COMSIG_HUMAN_HARMED_OTHER,victim )
volas marked this conversation as resolved.
Show resolved Hide resolved
victim.log_combat(assailant, "face-slammed against \the [parent]")
return FALSE

Expand Down Expand Up @@ -227,8 +227,8 @@
INVOKE_ASYNC(victim, TYPE_PROC_REF(/atom/movable, do_simple_move_animation), A.loc, old_loc)
victim.Stun(2)
victim.Weaken(5)

victim.log_combat(assailant, "laid on [A]")
SEND_SIGNAL(assailant, COMSIG_HUMAN_HARMED_OTHER, victim)
else if(assailant.a_intent != INTENT_HARM)
/// Let's pretend a face-slam doesn't exist.
to_chat(assailant, "<span class='warning'>You need a better grip to do that!</span>")
Expand Down
12 changes: 12 additions & 0 deletions code/datums/mind.dm
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@
var/creation_time = 0 //World time when this datum was New'd. Useful to tell how long since a character spawned
var/creation_roundtime

// Pluvia sochial credit system
var/social_credit = 0
var/haram_point = 0
var/blessed = 0

var/willpower_amount = 1
var/possible_willpower_effects = list(/datum/willpower_effect/painkiller, /datum/willpower_effect/skills, /datum/willpower_effect/nutrition, /datum/willpower_effect/fat)
var/willpower_effects = list()
Expand Down Expand Up @@ -782,6 +787,13 @@
..()
if(!mind.assigned_role)
mind.assigned_role = "default" //default
//Pluvia social credit system
if(mind.assigned_job.title in list("Captain","Head of Security","Warden","Security Officer","Security Cadet","Blueshield Officer","Internal Affairs Agent"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

помот может хардкод надо будет еще заменить на datum/job::name, но сейчас это у нас проблема всех джоб списков и надо будет потом отдельно и везде решать.

Тут можно только еще список как статик сделать, но не критично

mind.social_credit = 0
else
mind.social_credit = species.start_social_credit
if(ispluvian(src))
global.pluvia_religion.add_member(src, HOLY_ROLE_PRIEST)

//slime
/mob/living/carbon/slime/mind_initialize()
Expand Down
1 change: 1 addition & 0 deletions code/datums/outfits/jobs/centcom.dm
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@

implants = list(
/obj/item/weapon/implant/mind_protect/loyalty, /obj/item/weapon/implant/blueshield)

1 change: 0 additions & 1 deletion code/datums/outfits/jobs/security.dm
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,3 @@
uniform = /obj/item/clothing/under/syndicate/tacticool
uniform_f = /obj/item/clothing/under/syndicate/tacticool
l_ear = /obj/item/device/radio/headset/headset_sec/nt_pmc

Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
user.visible_message("<span class='danger'>[user] devours [target]!</span>",
"<span class='notice'>We have devour [target]!</span>")
to_chat(target, "<span class='danger'>You have been devoured by the changeling!</span>")
var/mob/living/carbon/human/changeling = user
changeling.mind.social_credit += target.mind.social_credit
for(var/obj/item/I in target)
target.drop_from_inventory(I)
target.spawn_gibs()
Expand Down
3 changes: 3 additions & 0 deletions code/game/gamemodes/modes_gameplays/wizard/soulstone.dm
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
if(HAS_TRAIT(H, TRAIT_NO_SOUL) || HAS_TRAIT(H, TRAIT_SOULSTONE_IMMUNE) || H.species.flags[IS_SYNTHETIC])
to_chat(user, "<span class='warning'>У этого существа нет души.</span>")
return ..()
if(istype(H.my_religion, /datum/religion/pluvia) || H.mind.blessed)
to_chat(user, "<span class='warning'>Душа этого существа под защитой.</span>")
return ..()

H.log_combat(user, "soul-captured via [name]")

Expand Down
4 changes: 2 additions & 2 deletions code/game/jobs/job/centcom.dm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
minimal_player_age = 14
minimal_player_ingame_minutes = 2400
outfit = /datum/outfit/job/blueshield
restricted_species = list(SKRELL, UNATHI, TAJARAN, DIONA, VOX, IPC)
restricted_species = list(SKRELL, UNATHI, TAJARAN, DIONA, VOX, IPC, PLUVIAN)
skillsets = list("Blueshield Officer" = /datum/skillset/blueshield)
/*
HEY YOU!
Expand Down Expand Up @@ -46,5 +46,5 @@
AND BUMPING UP THE SAVEFILE_VERSION_MAX, AND SAVEFILE_VERSION_SPECIES_JOBS
~Luduk
*/
restricted_species = list(SKRELL, UNATHI, TAJARAN, DIONA, VOX, IPC)
restricted_species = list(SKRELL, UNATHI, TAJARAN, DIONA, VOX, IPC, PLUVIAN)
flags = JOB_FLAG_CENTCOMREPRESENTATIVE|JOB_FLAG_BLUESHIELD_PROTEC
1 change: 1 addition & 0 deletions code/game/jobs/job/civilian_chaplain.dm
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
outfit = /datum/outfit/job/chaplain
skillsets = list("Chaplain" = /datum/skillset/chaplain)
flags = JOB_FLAG_CIVIL
restricted_species = list(PLUVIAN)

/datum/job/chaplain/post_equip(mob/living/carbon/human/H, visualsOnly = FALSE)
if(!visualsOnly && H.mind)
Expand Down
12 changes: 6 additions & 6 deletions code/game/jobs/job/security.dm
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
AND BUMPING UP THE SAVEFILE_VERSION_MAX, AND SAVEFILE_VERSION_SPECIES_JOBS
~Luduk
*/
restricted_species = list(SKRELL, UNATHI, TAJARAN, DIONA, VOX, IPC)
restricted_species = list(SKRELL, UNATHI, TAJARAN, DIONA, VOX, IPC , PLUVIAN)
flags = JOB_FLAG_SECURITY|JOB_FLAG_COMMAND|JOB_FLAG_HEAD_OF_STAFF|JOB_FLAG_BLUESHIELD_PROTEC

/datum/job/warden
Expand All @@ -52,7 +52,7 @@
AND BUMPING UP THE SAVEFILE_VERSION_MAX, AND SAVEFILE_VERSION_SPECIES_JOBS
~Luduk
*/
restricted_species = list(TAJARAN, DIONA, VOX, IPC)
restricted_species = list(TAJARAN, DIONA, VOX, IPC, PLUVIAN)
flags = JOB_FLAG_SECURITY

/datum/job/warden/post_equip(mob/living/carbon/human/H, visualsOnly = FALSE)
Expand Down Expand Up @@ -81,7 +81,7 @@
AND BUMPING UP THE SAVEFILE_VERSION_MAX, AND SAVEFILE_VERSION_SPECIES_JOBS
~Luduk
*/
restricted_species = list(DIONA, IPC)
restricted_species = list(DIONA, IPC, PLUVIAN)
flags = JOB_FLAG_SECURITY

/datum/job/officer
Expand All @@ -106,7 +106,7 @@
AND BUMPING UP THE SAVEFILE_VERSION_MAX, AND SAVEFILE_VERSION_SPECIES_JOBS
~Luduk
*/
restricted_species = list(DIONA, TAJARAN, VOX, IPC)
restricted_species = list(DIONA, TAJARAN, VOX, IPC, PLUVIAN)
flags = JOB_FLAG_SECURITY

/datum/job/officer/post_equip(mob/living/carbon/human/H, visualsOnly = FALSE)
Expand Down Expand Up @@ -136,7 +136,7 @@
AND BUMPING UP THE SAVEFILE_VERSION_MAX, AND SAVEFILE_VERSION_SPECIES_JOBS
~Luduk
*/
restricted_species = list(UNATHI, DIONA)
restricted_species = list(UNATHI, DIONA, PLUVIAN)
flags = JOB_FLAG_SECURITY

/datum/job/cadet
Expand All @@ -161,5 +161,5 @@
AND BUMPING UP THE SAVEFILE_VERSION_MAX, AND SAVEFILE_VERSION_SPECIES_JOBS
~Luduk
*/
restricted_species = list(DIONA, TAJARAN, VOX, IPC)
restricted_species = list(DIONA, TAJARAN, VOX, IPC, PLUVIAN)
flags = JOB_FLAG_SECURITY
2 changes: 1 addition & 1 deletion code/game/machinery/kitchen/gibber.dm
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@

/obj/machinery/gibber/proc/gib_mob(mob/user)
occupant.log_combat(user, "gibbed via [name]")

SEND_SIGNAL(user, COMSIG_HUMAN_HARMED_OTHER, occupant)
occupant.ghostize(bancheck = TRUE)

occupant.harvest()
Expand Down
2 changes: 2 additions & 0 deletions code/game/machinery/vending/eat.dm
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@
/obj/item/weapon/reagent_containers/food/snacks/chinese/sweetsourchickenball = 6,
/obj/item/weapon/reagent_containers/food/snacks/chinese/newdles = 6,
/obj/item/weapon/reagent_containers/food/snacks/chinese/rice = 6,
/obj/item/weapon/reagent_containers/food/snacks/chinese/lunarice = 12,
/obj/item/weapon/kitchen/utensil/fork/sticks = 18,
)
prices = list(
Expand All @@ -160,6 +161,7 @@
/obj/item/weapon/reagent_containers/food/snacks/chinese/sweetsourchickenball = 25,
/obj/item/weapon/reagent_containers/food/snacks/chinese/newdles = 25,
/obj/item/weapon/reagent_containers/food/snacks/chinese/rice = 25,
/obj/item/weapon/reagent_containers/food/snacks/chinese/lunarice = 50,
/obj/item/weapon/kitchen/utensil/fork/sticks = 1,
)
refill_canister = /obj/item/weapon/vending_refill/chinese
Expand Down
4 changes: 4 additions & 0 deletions code/game/mecha/equipment/tools/tools.dm
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
chassis.visible_message("<span class='warning'>[chassis] squeezes [target].</span>")

M.log_combat(chassis.occupant, "attacked via [chassis]'s [name]")
SEND_SIGNAL(chassis.occupant, COMSIG_HUMAN_HARMED_OTHER, M)
else
step_away(M,chassis)
occupant_message("You push [target] out of the way.")
Expand Down Expand Up @@ -145,6 +146,7 @@
if(isliving(target))
var/mob/living/M = target
M.log_combat(chassis.occupant, "attacked via [chassis]'s [name]")
SEND_SIGNAL(chassis.occupant, COMSIG_HUMAN_HARMED_OTHER, M)

log_message("Drilled through [target]")
target.ex_act(EXPLODE_HEAVY)
Expand Down Expand Up @@ -212,6 +214,8 @@
if(isliving(target))
var/mob/living/M = target
M.log_combat(chassis.occupant, "attacked via [chassis]'s [name]")
SEND_SIGNAL(chassis.occupant, COMSIG_HUMAN_HARMED_OTHER, M)

log_message("Drilled through [target]")
target.ex_act(EXPLODE_HEAVY)
return 1
Expand Down
Loading
Loading