mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 19:52:40 +00:00
E-Wallet object added.
Made ATM to spawn e-wallets. Untested.
This commit is contained in:
@@ -190,7 +190,7 @@ log transactions
|
|||||||
dat += "<form name='withdrawal' action='?src=\ref[src]' method='get'>"
|
dat += "<form name='withdrawal' action='?src=\ref[src]' method='get'>"
|
||||||
dat += "<input type='hidden' name='src' value='\ref[src]'>"
|
dat += "<input type='hidden' name='src' value='\ref[src]'>"
|
||||||
dat += "<input type='hidden' name='choice' value='withdrawal'>"
|
dat += "<input type='hidden' name='choice' value='withdrawal'>"
|
||||||
dat += "<input type='text' name='funds_amount' value='' style='width:200px; background-color:white;'><input type='submit' value='Withdraw funds'><br>"
|
dat += "<input type='text' name='funds_amount' value='' style='width:200px; background-color:white;'><input type='submit' value='Withdraw e-wallet'>" //fae change: fuck it, ewallet
|
||||||
dat += "</form>"
|
dat += "</form>"
|
||||||
dat += "<A href='?src=\ref[src];choice=view_screen;view_screen=1'>Change account security level</a><br>"
|
dat += "<A href='?src=\ref[src];choice=view_screen;view_screen=1'>Change account security level</a><br>"
|
||||||
dat += "<A href='?src=\ref[src];choice=view_screen;view_screen=2'>Make transfer</a><br>"
|
dat += "<A href='?src=\ref[src];choice=view_screen;view_screen=2'>Make transfer</a><br>"
|
||||||
@@ -309,7 +309,11 @@ log transactions
|
|||||||
|
|
||||||
//remove the money
|
//remove the money
|
||||||
authenticated_account.money -= amount
|
authenticated_account.money -= amount
|
||||||
spawn_money(amount,src.loc)
|
|
||||||
|
//fae change {
|
||||||
|
// spawn_money(amount,src.loc)
|
||||||
|
spawn_ewallet(amount,src.loc)
|
||||||
|
//}
|
||||||
|
|
||||||
//create an entry in the account transaction log
|
//create an entry in the account transaction log
|
||||||
var/datum/transaction/T = new()
|
var/datum/transaction/T = new()
|
||||||
@@ -402,3 +406,9 @@ log transactions
|
|||||||
if(ishuman(human_user) && !human_user.get_active_hand())
|
if(ishuman(human_user) && !human_user.get_active_hand())
|
||||||
human_user.put_in_hands(held_card)
|
human_user.put_in_hands(held_card)
|
||||||
held_card = null
|
held_card = null
|
||||||
|
|
||||||
|
//fae change {
|
||||||
|
/obj/machinery/atm/proc/spawn_ewallet(var/sum, loc)
|
||||||
|
var/obj/item/weapon/spacecash/ewallet/E = new /obj/item/weapon/spacecash/ewallet(loc)
|
||||||
|
E.worth = sum
|
||||||
|
//}
|
||||||
@@ -71,4 +71,10 @@ proc/spawn_money(var/sum, spawnloc)
|
|||||||
while(sum >= i)
|
while(sum >= i)
|
||||||
sum -= i
|
sum -= i
|
||||||
new cash_type(spawnloc)
|
new cash_type(spawnloc)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
//Fae changes
|
||||||
|
/obj/item/weapon/spacecash/ewallet
|
||||||
|
name = "E-Wallet"
|
||||||
|
icon_state = "spacecash1000"
|
||||||
|
desc = "Worth: [worth] credits."
|
||||||
Reference in New Issue
Block a user